package leetcode_字符串._11字符串匹配;

/**
 * 重复的子字符串
 */
public class _459 {
    public static void main(String[] args) {
        System.out.println("abcabc".substring(1, "abcabc".length() - 1).contains("abc"));
    }

    public boolean repeatedSubstringPattern(String s) {
        String str = s + s;
        return str.substring(1, str.length() - 1).contains(s);
    }
}
